<script>
	export default {
		globalData: {
			embed: null,
			arr:[1,2,3,4,4,3,3,3,]
		},
		onLaunch: function() {
			
		},
		onShow: function() {
			console.log("test-log###","@@@111","%%%","$$$")
			console.error("test-error",undefined)
			console.warn("test-warn")
			console.info("test-info")
			console.log("test-log",{a:'ddd',b:'ddd',c:{a:'ddd',b:'ddd'}})
			console.log("globalData",this.globalData)
			uni.setStorageSync("ktet","dafdsa")
			uni.setStorageSync("ktetDATA",{a:'ddd',b:'ddd'})
			// this.getApi()
			this.$nextTick(function(){
				console.log("getApp()",getApp())
			})
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods:{
			getApi(){
				uni.request({
					url:"http://www.baidu.com/wechat_shop_active/hot_key",
					data:{"test":"ttttt","test2":"ttttt"},
					method:"POST",
					success(res) {
						console.log("res",res)
					}
				})
				uni.request({
					url:"http://www.baidu.cn/wechat_shop_active/1",
					data:{"test":"ttttt"},
					method:"POST"
				})
			},
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
